import request from '@/utils/request';

//获得服务商品分类
export const categoryTopList = (params: any) => {
    return request({
        url: '/app-api/product/category/top/list',
        method: 'POST',
        body: params,
        hideLoading: false,
    });
};

//获得服务商品 SPU 分页
export const servicePage = (params: any) => {
    return request({
        url: '/app-api/product/service/page',
        method: 'POST',
        body: params,
        hideLoading: false,
    });
};


//获得服务商品 SPU 详情
export const spuGetDetail = (params: any) => {
    return request({
        url: '/app-api/product/service/detail',
        method: 'GET',
        body: params,
        hideLoading: false,
    });
};

//根据所属店铺id获得美容师列表
export const staffList = (params: any) => {
    return request({
        url: '/app-api/system/staff/list/storeId',
        method: 'GET',
        body: params,
        hideLoading: false,
    });
};

//app-api/product/service/store/page
export const storepage = (params: any) => {
    return request({
        url: '/app-api/product/service/store/page',
        method: 'POST',
        body: params,
        hideLoading: false,
    });
};
